package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_dynamic_reply;

import cn.com.api.mapper.ApiU_dynamic_replyMapper;

import cn.com.api.service.ApiU_dynamic_replyService;

/**
 * 
 **/
@Service
public class U_dynamic_replyServiceImplBase {
	@Autowired
	private ApiU_dynamic_replyMapper apiU_dynamic_replyMapper;
    
    // 根据id获取
	public ApiU_dynamic_reply findU_dynamic_replyById(Integer id){
		ApiU_dynamic_reply u_dynamic_reply = apiU_dynamic_replyMapper.findU_dynamic_replyById( id );
		return u_dynamic_reply;
	}
    
    //查看数据集
	public List<ApiU_dynamic_reply> findU_dynamic_replys(){
        List<ApiU_dynamic_reply> u_dynamic_replys = apiU_dynamic_replyMapper.findU_dynamic_replys();
		return u_dynamic_replys;
    }
   
//    //根据条件查看数据集
//	public List<ApiU_dynamic_reply> findU_dynamic_replysByMap(HashMap condition){
//        List<ApiU_dynamic_reply> u_dynamic_replys = apiU_dynamic_replyMapper.findU_dynamic_replysByMap(condition);
//		return u_dynamic_replys;
//    }
    
	// 添加
	public int insertU_dynamic_reply(ApiU_dynamic_reply u_dynamic_reply){
		int ret_I= apiU_dynamic_replyMapper.insertU_dynamic_reply(u_dynamic_reply);
		return ret_I;
	}

	// 修改
	public int updateU_dynamic_reply(ApiU_dynamic_reply u_dynamic_reply){
		int ret_I= apiU_dynamic_replyMapper.updateU_dynamic_reply(u_dynamic_reply);
		return ret_I;
	}
	
    // 删除
	public int deleteU_dynamic_reply(Integer id){
		int ret_I= apiU_dynamic_replyMapper.deleteU_dynamic_reply( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


